package com.zhangbo.study.designpatternlearning.state;

public class SwitchStart implements State {

    private RemoteControlSwitch remoteControlSwitch;


    public SwitchStart(RemoteControlSwitch remoteControlSwitch) {
        this.remoteControlSwitch = remoteControlSwitch;
    }


    @Override
    public boolean start() {
        System.out.println("开灯");
        return true;
    }

    @Override
    public boolean stop() {
        System.out.println("不支持当前操作");
        return false;
    }
}
